gtk4.git
15 years agoGtkStyleSet: Register "margin" property.
Carlos Garnacho [Mon, 30 Aug 2010 20:35:30 +0000 (22:35 +0200)]
GtkStyleSet: Register "margin" property.

15 years agoAdd basic parser for GtkBorder properties.
Carlos Garnacho [Mon, 30 Aug 2010 20:34:31 +0000 (22:34 +0200)]
Add basic parser for GtkBorder properties.

Different units aren't supported, it takes 1 to 4 integers representing
pixel distances.

15 years agoGtkStyle: Allow GTK_ARROW_NONE.
Carlos Garnacho [Mon, 23 Aug 2010 16:00:31 +0000 (18:00 +0200)]
GtkStyle: Allow GTK_ARROW_NONE.

15 years agoGtkNotebook: invert tab drawing order so region flags are set correctly.
Carlos Garnacho [Mon, 23 Aug 2010 16:00:06 +0000 (18:00 +0200)]
GtkNotebook: invert tab drawing order so region flags are set correctly.

15 years agoGet rid of GdkPangoRenderer code in GtkThemingEngine.
Carlos Garnacho [Fri, 20 Aug 2010 12:58:54 +0000 (14:58 +0200)]
Get rid of GdkPangoRenderer code in GtkThemingEngine.

15 years agoReplace GdkRegion and GdkRectangle with their cairo counterparts.
Carlos Garnacho [Fri, 20 Aug 2010 12:09:30 +0000 (14:09 +0200)]
Replace GdkRegion and GdkRectangle with their cairo counterparts.

15 years agoRemove gtkalias from style context code.
Carlos Garnacho [Fri, 20 Aug 2010 11:56:30 +0000 (13:56 +0200)]
Remove gtkalias from style context code.

15 years agoGtkCssProvider: Add gtk_css_provider_load_from_path()
Carlos Garnacho [Fri, 20 Aug 2010 09:50:39 +0000 (11:50 +0200)]
GtkCssProvider: Add gtk_css_provider_load_from_path()

15 years agoPlug a bunch of leaks.
Carlos Garnacho [Thu, 19 Aug 2010 23:16:40 +0000 (01:16 +0200)]
Plug a bunch of leaks.

15 years agoGtkButton: Notify on active state when (un)depressed
Carlos Garnacho [Thu, 19 Aug 2010 20:47:44 +0000 (22:47 +0200)]
GtkButton: Notify on active state when (un)depressed

15 years agoGtkThemingEngine: Animate checkboxes activation.
Carlos Garnacho [Thu, 19 Aug 2010 20:47:02 +0000 (22:47 +0200)]
GtkThemingEngine: Animate checkboxes activation.

15 years agoGtkThemingEngine: Add progress arg to gtk_theming_engine_is_state_set()
Carlos Garnacho [Thu, 19 Aug 2010 20:45:22 +0000 (22:45 +0200)]
GtkThemingEngine: Add progress arg to gtk_theming_engine_is_state_set()

15 years agoGtkWidget: Update GtkStyleContext animation regions on allocation change.
Carlos Garnacho [Thu, 19 Aug 2010 20:42:16 +0000 (22:42 +0200)]
GtkWidget: Update GtkStyleContext animation regions on allocation change.

15 years agoGtkStyleContext: Add animation machinery.
Carlos Garnacho [Thu, 19 Aug 2010 20:35:42 +0000 (22:35 +0200)]
GtkStyleContext: Add animation machinery.

Animation regions are confined through gtk_style_context_[push|pop]_animatable_region,
anything that's painted between these calls will be invalidated if an animation starts
for any of the regions in the stack.

gtk_style_context_notify_state_change() may be called from widgets to indicate a
change for a given GtkStateType, in that case an animation will be started if there
is an animation description for the widget/state.

15 years agoGtkStyleContext: Declare gtk_style_context_list_classes() in header.
Carlos Garnacho [Thu, 19 Aug 2010 20:00:04 +0000 (22:00 +0200)]
GtkStyleContext: Declare gtk_style_context_list_classes() in header.

15 years agoGtkCssProvider: Parse properties of type GtkAnimationDescription.
Carlos Garnacho [Thu, 19 Aug 2010 19:50:19 +0000 (21:50 +0200)]
GtkCssProvider: Parse properties of type GtkAnimationDescription.

15 years agoGtkStyleSet: Register the "transition" property.
Carlos Garnacho [Thu, 19 Aug 2010 19:49:22 +0000 (21:49 +0200)]
GtkStyleSet: Register the "transition" property.

15 years agoAdd GtkAnimationDescription as a private boxed object.
Carlos Garnacho [Thu, 19 Aug 2010 19:45:30 +0000 (21:45 +0200)]
Add GtkAnimationDescription as a private boxed object.

This struct will be used to represent an animation in GtkStyleSet. It
will only be used internally in GtkStyleContext in order to trigger
animations, engines shouldn't need this.

15 years agoAdd GtkTimeline as a private object.
Carlos Garnacho [Thu, 19 Aug 2010 19:40:41 +0000 (21:40 +0200)]
Add GtkTimeline as a private object.

This will only be used internally by GtkStyleContext in order
to animate state changes. When a proper animation framework is
introduced in GTK+, it may be ditched.

15 years agoMove all theming stack to use GtkStateFlags.
Carlos Garnacho [Mon, 16 Aug 2010 17:09:34 +0000 (19:09 +0200)]
Move all theming stack to use GtkStateFlags.

This support goes from the theming engines, which are able to retrieve
style for different combined states to the CSS provider, where several
state pseudo-classes may be specified, such as:

GtkButton:active:prelight {}

15 years agoGtkStyleContext: Return insertion position if not found when matching classes/regions
Carlos Garnacho [Mon, 16 Aug 2010 17:08:11 +0000 (19:08 +0200)]
GtkStyleContext: Return insertion position if not found when matching classes/regions

15 years agoGtkStyle: set the active flag depending on shadow_type in draw_box().
Carlos Garnacho [Mon, 16 Aug 2010 16:40:03 +0000 (18:40 +0200)]
GtkStyle: set the active flag depending on shadow_type in draw_box().

15 years agoGtkCssProvider: Use class for tooltips.
Carlos Garnacho [Fri, 6 Aug 2010 10:09:09 +0000 (12:09 +0200)]
GtkCssProvider: Use class for tooltips.

15 years agoGtkCssProvider: Parse and match class info.
Carlos Garnacho [Fri, 6 Aug 2010 10:08:48 +0000 (12:08 +0200)]
GtkCssProvider: Parse and match class info.

15 years agoSet classes info in GtkWidgetPath.
Carlos Garnacho [Fri, 6 Aug 2010 10:06:29 +0000 (12:06 +0200)]
Set classes info in GtkWidgetPath.

15 years agoGtkStyleContext: Add gtk_style_context_list_classes().
Carlos Garnacho [Fri, 6 Aug 2010 10:05:42 +0000 (12:05 +0200)]
GtkStyleContext: Add gtk_style_context_list_classes().

15 years agoGtkWidgetPath: Add methods to include class info in paths.
Carlos Garnacho [Fri, 6 Aug 2010 09:59:35 +0000 (11:59 +0200)]
GtkWidgetPath: Add methods to include class info in paths.

15 years agos/child class/region/ everywhere.
Carlos Garnacho [Thu, 5 Aug 2010 09:08:51 +0000 (11:08 +0200)]
s/child class/region/ everywhere.

"Child class" is an invented term anyway, and it conceptually defines
identifiable regions in widgets.

15 years agoGtkStyleContext: Rename internal struct.
Carlos Garnacho [Thu, 5 Aug 2010 09:28:15 +0000 (11:28 +0200)]
GtkStyleContext: Rename internal struct.

GtkStyleRegion has been renamed to GtkStyleInfo, as it doesn't really
have much to do with regions itself, the information it contains does.
This struct is used in save/restore.

15 years agoGtkThemingEngine: Add gtk_theming_engine_register_property().
Carlos Garnacho [Wed, 4 Aug 2010 15:51:19 +0000 (17:51 +0200)]
GtkThemingEngine: Add gtk_theming_engine_register_property().

This function may be used for custom property registration from
theming engines. The property names will have the
-${engine-type-name}-${prop-name} format, the parser has been
modified to allow properties with '-' as the first char.

15 years agoGtkStyleSet: Fix compiler warning.
Carlos Garnacho [Wed, 4 Aug 2010 15:50:52 +0000 (17:50 +0200)]
GtkStyleSet: Fix compiler warning.

15 years agoGtkStyleSet: Allow custom parsers on registered properties.
Carlos Garnacho [Wed, 4 Aug 2010 15:49:15 +0000 (17:49 +0200)]
GtkStyleSet: Allow custom parsers on registered properties.

15 years agoGtkCssProvider: Parse correctly widget types with a name.
Carlos Garnacho [Wed, 4 Aug 2010 12:51:01 +0000 (14:51 +0200)]
GtkCssProvider: Parse correctly widget types with a name.

There's now a distinction between:

GtkLabel#label-name: Label with name "label-name"
GtkWindow #label-name: Window containing a widget named "label-name"

15 years agoCompare widget names as GQuarks in style matching.
Carlos Garnacho [Wed, 4 Aug 2010 11:11:50 +0000 (13:11 +0200)]
Compare widget names as GQuarks in style matching.

15 years agoGtkWidgetPath: Make API more consistent.
Carlos Garnacho [Wed, 4 Aug 2010 10:50:37 +0000 (12:50 +0200)]
GtkWidgetPath: Make API more consistent.

15 years agoCompare region names as quarks in style matching.
Carlos Garnacho [Wed, 4 Aug 2010 10:19:23 +0000 (12:19 +0200)]
Compare region names as quarks in style matching.

15 years agoGtkCssProvider: Set child combinators in default CSS.
Carlos Garnacho [Wed, 4 Aug 2010 09:46:01 +0000 (11:46 +0200)]
GtkCssProvider: Set child combinators in default CSS.

15 years agoGtkCssProvider: Parse and compare widget names.
Carlos Garnacho [Wed, 4 Aug 2010 09:44:32 +0000 (11:44 +0200)]
GtkCssProvider: Parse and compare widget names.

15 years agoGtkCssProvider: Don't jump too eagerly to the next element when comparing selectors.
Carlos Garnacho [Wed, 4 Aug 2010 09:43:18 +0000 (11:43 +0200)]
GtkCssProvider: Don't jump too eagerly to the next element when comparing selectors.

15 years agoGtkCssProvider: Immediately bail out if GType couldn't be resolved.
Carlos Garnacho [Wed, 4 Aug 2010 09:42:08 +0000 (11:42 +0200)]
GtkCssProvider: Immediately bail out if GType couldn't be resolved.

15 years agoGtkCssProvider: Small optimization.
Carlos Garnacho [Wed, 4 Aug 2010 09:36:21 +0000 (11:36 +0200)]
GtkCssProvider: Small optimization.

15 years agoGtkCssProvider: don't ignore custom attributes
Sven Herzberg [Thu, 5 Aug 2010 14:21:47 +0000 (16:21 +0200)]
GtkCssProvider: don't ignore custom attributes

* gtk/gtkcssprovider.c: don't ignore custom attribites (which can be
  added by theme engines)

15 years agoGtkWidgetPath: properly use const
Sven Herzberg [Thu, 5 Aug 2010 14:21:12 +0000 (16:21 +0200)]
GtkWidgetPath: properly use const

* gtk/gtkwidgetpath.c,
* gtk/gtkwidgetpath.h: use const where possible

15 years agoGtkThemingEngine: Render correctly spinbutton buttons.
Carlos Garnacho [Tue, 3 Aug 2010 18:38:23 +0000 (20:38 +0200)]
GtkThemingEngine: Render correctly spinbutton buttons.

15 years agoGtkStyle: set junction details in spinbutton buttons.
Carlos Garnacho [Tue, 3 Aug 2010 18:37:53 +0000 (20:37 +0200)]
GtkStyle: set junction details in spinbutton buttons.

15 years agoGtkThemingEngine: Add gtk_theming_engine_get_junction_sides().
Carlos Garnacho [Tue, 3 Aug 2010 18:36:09 +0000 (20:36 +0200)]
GtkThemingEngine: Add gtk_theming_engine_get_junction_sides().

15 years agoGtkStyleContext: Add gtk_style_context_[gs]et_junction_sides().
Carlos Garnacho [Tue, 3 Aug 2010 18:33:53 +0000 (20:33 +0200)]
GtkStyleContext: Add gtk_style_context_[gs]et_junction_sides().

These functions will help widgets specify how does one element being painted
relate to other contiguous elements.

15 years agoAdd GtkJunctionSides flags.
Carlos Garnacho [Tue, 3 Aug 2010 18:32:25 +0000 (20:32 +0200)]
Add GtkJunctionSides flags.

15 years agoGtkStyleContext: Add gtk_style_context_lookup_color().
Carlos Garnacho [Tue, 3 Aug 2010 18:30:26 +0000 (20:30 +0200)]
GtkStyleContext: Add gtk_style_context_lookup_color().

gtk_style_lookup_color() now uses this function internally.

15 years agoGtkStyleSet: Register the "border" property.
Carlos Garnacho [Tue, 3 Aug 2010 18:29:07 +0000 (20:29 +0200)]
GtkStyleSet: Register the "border" property.

15 years agoGtkThemingEngine: fix typo in function declaration.
Carlos Garnacho [Tue, 3 Aug 2010 18:27:32 +0000 (20:27 +0200)]
GtkThemingEngine: fix typo in function declaration.

15 years agoGtkThemingEngine: Add gtk_theming_engine_get_direction().
Carlos Garnacho [Tue, 3 Aug 2010 18:26:53 +0000 (20:26 +0200)]
GtkThemingEngine: Add gtk_theming_engine_get_direction().

15 years agoGtkWidget: Set style context direction.
Carlos Garnacho [Mon, 2 Aug 2010 15:24:27 +0000 (17:24 +0200)]
GtkWidget: Set style context direction.

15 years agoGtkStyleContext: Add gtk_style_context_[gs]et_direction().
Carlos Garnacho [Mon, 2 Aug 2010 15:18:53 +0000 (17:18 +0200)]
GtkStyleContext: Add gtk_style_context_[gs]et_direction().

15 years agoGtkWidget: Add the default CSS provider to all style contexts.
Carlos Garnacho [Mon, 2 Aug 2010 14:16:50 +0000 (16:16 +0200)]
GtkWidget: Add the default CSS provider to all style contexts.

15 years agoGtkCssProvider: Add gtk_css_provider_get_default().
Carlos Garnacho [Mon, 2 Aug 2010 14:16:03 +0000 (16:16 +0200)]
GtkCssProvider: Add gtk_css_provider_get_default().

This method returns a GtkCssProvider with the default style information
loaded.

15 years agoGtkStyle: Move gtk_render_* calls to default vmethod implementations.
Carlos Garnacho [Mon, 2 Aug 2010 14:15:06 +0000 (16:15 +0200)]
GtkStyle: Move gtk_render_* calls to default vmethod implementations.

15 years agoGtkWidget: Create GtkStyle on top of GtkStyleContext.
Carlos Garnacho [Mon, 2 Aug 2010 14:14:17 +0000 (16:14 +0200)]
GtkWidget: Create GtkStyle on top of GtkStyleContext.

15 years agoGtkWidget: Construct style for partial widget hierarchies.
Carlos Garnacho [Mon, 2 Aug 2010 14:11:40 +0000 (16:11 +0200)]
GtkWidget: Construct style for partial widget hierarchies.

Some unparented widgets like to ask style details, so now the style is
constructed regardless of the parent being present or not, and then
reconstructed if the parent changes.

15 years agoGtkStyle: Optionally construct above a GtkStyleContext.
Carlos Garnacho [Mon, 2 Aug 2010 14:05:58 +0000 (16:05 +0200)]
GtkStyle: Optionally construct above a GtkStyleContext.

15 years agoGtkThemingEngine: Add code to render GtkFrame frame with gap.
Carlos Garnacho [Mon, 2 Aug 2010 13:52:26 +0000 (15:52 +0200)]
GtkThemingEngine: Add code to render GtkFrame frame with gap.

15 years agoGtkThemingEngine: Obey active/selected when rendering text.
Carlos Garnacho [Mon, 2 Aug 2010 13:51:23 +0000 (15:51 +0200)]
GtkThemingEngine: Obey active/selected when rendering text.

15 years agoGtkThemingEngine: Rip out focus rendering from old code.
Carlos Garnacho [Mon, 2 Aug 2010 13:50:37 +0000 (15:50 +0200)]
GtkThemingEngine: Rip out focus rendering from old code.

15 years agoGtkThemingEngine: Rip out expander rendering from old code.
Carlos Garnacho [Mon, 2 Aug 2010 13:49:45 +0000 (15:49 +0200)]
GtkThemingEngine: Rip out expander rendering from old code.

15 years agoGtkThemingEngine: Render frames and spinbutton boxes properly.
Carlos Garnacho [Mon, 2 Aug 2010 13:48:31 +0000 (15:48 +0200)]
GtkThemingEngine: Render frames and spinbutton boxes properly.

15 years agoGtkThemingEngine: Improve background rendering.
Carlos Garnacho [Mon, 2 Aug 2010 13:46:08 +0000 (15:46 +0200)]
GtkThemingEngine: Improve background rendering.

Now active and selected states are taken into account, and GtkSpinButton
buttons are special cased.

15 years agoGtkThemingEngine: Improve pixel alignment in arrows.
Carlos Garnacho [Mon, 2 Aug 2010 13:45:13 +0000 (15:45 +0200)]
GtkThemingEngine: Improve pixel alignment in arrows.

15 years agoGtkThemingEngine: Add methods to retrieve widget style properties.
Carlos Garnacho [Mon, 2 Aug 2010 13:33:20 +0000 (15:33 +0200)]
GtkThemingEngine: Add methods to retrieve widget style properties.

15 years agoGtkStyleSet: Allow setting default value when registering properties.
Carlos Garnacho [Mon, 2 Aug 2010 13:26:41 +0000 (15:26 +0200)]
GtkStyleSet: Allow setting default value when registering properties.

This is now used for the "engine" keyword, where the default engine is used
if none is specified.

15 years agoGtkStyleContext: Add varargs functions for getting widget style properties.
Carlos Garnacho [Mon, 2 Aug 2010 11:58:16 +0000 (13:58 +0200)]
GtkStyleContext: Add varargs functions for getting widget style properties.

15 years agoGtkStyleContext: Ensure style rebuilds after adding/removing classes.
Carlos Garnacho [Mon, 2 Aug 2010 11:52:28 +0000 (13:52 +0200)]
GtkStyleContext: Ensure style rebuilds after adding/removing classes.

15 years agoGtkStyleContext: ensure class lookup return the correct insertion position if not...
Carlos Garnacho [Mon, 2 Aug 2010 11:50:17 +0000 (13:50 +0200)]
GtkStyleContext: ensure class lookup return the correct insertion position if not found.

15 years agoGtkCssProvider: Allow '_' in the middle of symbolic color names.
Carlos Garnacho [Mon, 2 Aug 2010 11:46:25 +0000 (13:46 +0200)]
GtkCssProvider: Allow '_' in the middle of symbolic color names.

15 years agoGtkThemingEngine: Improve slider rendering.
Carlos Garnacho [Mon, 19 Jul 2010 10:00:07 +0000 (12:00 +0200)]
GtkThemingEngine: Improve slider rendering.

15 years agoGtkThemingEngine: Cairo-ify frame rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:59:27 +0000 (11:59 +0200)]
GtkThemingEngine: Cairo-ify frame rendering from GtkStyle.

15 years agoGtkThemingEngine: Cairo-ify frame_gap rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:58:13 +0000 (11:58 +0200)]
GtkThemingEngine: Cairo-ify frame_gap rendering from GtkStyle.

15 years agoGtkThemingEngine: Cairo-ify extension rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:57:25 +0000 (11:57 +0200)]
GtkThemingEngine: Cairo-ify extension rendering from GtkStyle.

15 years agoGtkThemingEngine: Make render_background use drawing primitives.
Carlos Garnacho [Mon, 19 Jul 2010 09:56:01 +0000 (11:56 +0200)]
GtkThemingEngine: Make render_background use drawing primitives.

15 years agoGtkThemingEngine: Unify code to render lines.
Carlos Garnacho [Mon, 19 Jul 2010 09:54:31 +0000 (11:54 +0200)]
GtkThemingEngine: Unify code to render lines.

15 years agoGtkThemingEngine: Add cairo-ified rendering primitives.
Carlos Garnacho [Mon, 19 Jul 2010 09:51:17 +0000 (11:51 +0200)]
GtkThemingEngine: Add cairo-ified rendering primitives.

Functions to add paths for lines, rectangle sides, and the gap side in notebooks
have been added.

15 years agoGtkThemingEngine: Cairo-ify handle rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:47:37 +0000 (11:47 +0200)]
GtkThemingEngine: Cairo-ify handle rendering from GtkStyle.

15 years agoGtkThemingEngine: Take option rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:45:35 +0000 (11:45 +0200)]
GtkThemingEngine: Take option rendering from GtkStyle.

15 years agoGtkThemingEngine: Take checkbox rendering from GtkStyle.
Carlos Garnacho [Mon, 19 Jul 2010 09:42:18 +0000 (11:42 +0200)]
GtkThemingEngine: Take checkbox rendering from GtkStyle.

15 years agoGtkStyleContext: Don crash on empty class sets.
Carlos Garnacho [Sun, 18 Jul 2010 16:40:48 +0000 (18:40 +0200)]
GtkStyleContext: Don crash on empty class sets.

15 years agoGtkThemingEngine: Use GdkPangoRenderer when painting layouts.
Carlos Garnacho [Sat, 3 Jul 2010 18:55:38 +0000 (20:55 +0200)]
GtkThemingEngine: Use GdkPangoRenderer when painting layouts.

15 years agoGtkStyleContext: Add gtk_style_context_save/restore().
Carlos Garnacho [Sat, 3 Jul 2010 18:53:50 +0000 (20:53 +0200)]
GtkStyleContext: Add gtk_style_context_save/restore().

This API will be used to have savepoints when adding and removing
style classes information.

15 years agoGtkThemingEngine: Add gtk_theming_engine_get_screen().
Carlos Garnacho [Sat, 3 Jul 2010 11:21:56 +0000 (13:21 +0200)]
GtkThemingEngine: Add gtk_theming_engine_get_screen().

15 years agoGtkWidget: Set screen info in GtkStyleContext.
Carlos Garnacho [Sat, 3 Jul 2010 11:20:45 +0000 (13:20 +0200)]
GtkWidget: Set screen info in GtkStyleContext.

15 years agoGtkStyleContext: Add gtk_style_context_[gs]et_screen()
Carlos Garnacho [Sat, 3 Jul 2010 11:17:35 +0000 (13:17 +0200)]
GtkStyleContext: Add gtk_style_context_[gs]et_screen()

15 years agoGtkStyleContext: Add priv pointer to object struct.
Carlos Garnacho [Sat, 3 Jul 2010 00:20:42 +0000 (02:20 +0200)]
GtkStyleContext: Add priv pointer to object struct.

15 years agoGtkStyleSet: Add priv pointer to object struct.
Carlos Garnacho [Sat, 3 Jul 2010 00:19:54 +0000 (02:19 +0200)]
GtkStyleSet: Add priv pointer to object struct.

15 years agoGtkCssProvider: Add priv pointer to object struct.
Carlos Garnacho [Sat, 3 Jul 2010 00:19:27 +0000 (02:19 +0200)]
GtkCssProvider: Add priv pointer to object struct.

15 years agoFix include.
Carlos Garnacho [Fri, 2 Jul 2010 18:54:20 +0000 (20:54 +0200)]
Fix include.

15 years agoGtkStyleContext: Add gtk_style_context_lookup_icon_set().
Carlos Garnacho [Sun, 27 Jun 2010 17:37:34 +0000 (19:37 +0200)]
GtkStyleContext: Add gtk_style_context_lookup_icon_set().

15 years agoGtkStyleProvider: Add gtk_style_provider_get_icon_factory().
Carlos Garnacho [Sun, 27 Jun 2010 17:35:08 +0000 (19:35 +0200)]
GtkStyleProvider: Add gtk_style_provider_get_icon_factory().

With this, style providers have a way to override default icon theme.

15 years agoGtkCssProvider: Allow symbolic colors when parsing style rules.
Carlos Garnacho [Fri, 25 Jun 2010 18:31:08 +0000 (20:31 +0200)]
GtkCssProvider: Allow symbolic colors when parsing style rules.

15 years agoGtkCssProvider: Parse color mappings.
Carlos Garnacho [Fri, 25 Jun 2010 18:27:15 +0000 (20:27 +0200)]
GtkCssProvider: Parse color mappings.

These are of the form:

@color-a: #fff;
@color-b: mix (@color-a, #000, 0.5)
@color-c: shade (@color-b, 0.7)

In the stylesheet, arbitrary nesting of these commands is handled.

15 years agoGtkStyleSet: Optionally take GtkSymbolicColors.
Carlos Garnacho [Fri, 25 Jun 2010 18:08:07 +0000 (20:08 +0200)]
GtkStyleSet: Optionally take GtkSymbolicColors.

gtk_style_set_set_property() now takes both GdkColor and GtkSymbolicColor
GValues, All accessors still return GdkColors, so any symbolic color will
be resolved and replaced in the styleset at that time.

15 years agoGtkSymbolicColor: Add method to resolve to a GdkColor.
Carlos Garnacho [Fri, 25 Jun 2010 17:39:15 +0000 (19:39 +0200)]
GtkSymbolicColor: Add method to resolve to a GdkColor.

15 years agoGtkStyleSet: Add API to map symbolic colors.
Carlos Garnacho [Fri, 25 Jun 2010 17:37:54 +0000 (19:37 +0200)]
GtkStyleSet: Add API to map symbolic colors.